/// episodes_info : ""
/// rate : "9.4"
/// cover_x : 1080
/// title : "千与千寻"
/// url : "https://movie.douban.com/subject/1291561/"
/// playable : true
/// cover : "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2557573348.jpg"
/// id : "1291561"
/// cover_y : 1560
/// is_new : false

class Movie {
  String? _episodesInfo;
  String? _rate;
  int? _coverX;
  String? _title;
  String? _url;
  bool? _playable;
  String? _cover;
  String? _id;
  int? _coverY;
  bool? _isNew;

  String? get episodesInfo => _episodesInfo;
  String? get rate => _rate;
  int? get coverX => _coverX;
  String? get title => _title;
  String? get url => _url;
  bool? get playable => _playable;
  String? get cover => _cover;
  String? get id => _id;
  int? get coverY => _coverY;
  bool? get isNew => _isNew;

  Movie({
      String? episodesInfo, 
      String? rate, 
      int? coverX, 
      String? title, 
      String? url, 
      bool? playable, 
      String? cover, 
      String? id, 
      int? coverY, 
      bool? isNew}){
    _episodesInfo = episodesInfo;
    _rate = rate;
    _coverX = coverX;
    _title = title;
    _url = url;
    _playable = playable;
    _cover = cover;
    _id = id;
    _coverY = coverY;
    _isNew = isNew;
}

  Movie.fromJson(dynamic json) {
    _episodesInfo = json["episodes_info"];
    _rate = json["rate"];
    _coverX = json["cover_x"];
    _title = json["title"];
    _url = json["url"];
    _playable = json["playable"];
    _cover = json["cover"];
    _id = json["id"];
    _coverY = json["cover_y"];
    _isNew = json["is_new"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["episodes_info"] = _episodesInfo;
    map["rate"] = _rate;
    map["cover_x"] = _coverX;
    map["title"] = _title;
    map["url"] = _url;
    map["playable"] = _playable;
    map["cover"] = _cover;
    map["id"] = _id;
    map["cover_y"] = _coverY;
    map["is_new"] = _isNew;
    return map;
  }

}